<?php

include APP_PATH . 'template.php';
include APP_PATH . 'router.php';

 /*** auto load model classes ***/
    function __autoload($class_name) {
    $filename = strtolower($class_name) . '.php';
    $file = SITE_ROOT . 'application/model/' . $filename;

    if (file_exists($file) == false)
    {
        return false;
    }
  include ($file);
}

 /*** a new registry object ***/
 //$registry = new registry;
 /*** create the database registry object ***/
// $registry->db = db::getInstance();
 /*** create the database registry object ***/
 // $registry->db = db::getInstance();
?>